/**
*表格渲染器
* Json data 接口返回数据
* array fields
*/
(function(data, fields, continer){
	if(!fields){
		console.log('No field can be render');
		return false;
	}
	if(!data){
		console.log('Data is empty');
		return false;
	}
	var html = '<thead>';
		html += '<tr>';
	$(fields).each(function(a,b){
		html += "<th>{:L('cms_name')}</th>";
	
		console.log(a,b);
	});
		html =+ '</tr>';
		html =+ '</thead>';

	$('#'+continer).html(html);
})(data, fields, continer);